// see http://vuejs-templates.github.io/webpack for documentation.
var path = require('path')

module.exports = {
    build: {
        prodEnv: {
            NODE_ENV: '"production"'
        },
        devEnv:{
            NODE_ENV: '"development"'
        },


        index: path.resolve(__dirname, '../dushiyun/index.html'),
        assetsRoot: path.resolve(__dirname, '../dushiyun'),
        assetsSubDirectory:{
            dev:'static',
            prod:'sameCity/18031201/static'
        },
        assetsPublicPath:{ //正式环境跟测试包名路径命名
            dev:'/dushiyun/',
            prod:'/'
        },
        productionSourceMap:{
            dev:true,
            prod:false
        },
      
        // Surge or Netlify already gzip all static assets for you.
        // Before setting to `true`, make sure to:
        // npm install --save-dev compression-webpack-plugin
        productionGzip: false,
        productionGzipExtensions: ['js', 'css']
    },
    
    //本地测试环境调试
    dev: {
        prodEnv: {
            NODE_ENV: '"production"'
        },
        devEnv:{
            NODE_ENV: '"development"'
        },
        port: 8080,
        assetsSubDirectory: 'static',
        assetsPublicPath: '/',
        // CSS Sourcemaps off by default because relative paths are "buggy"
        // with this option, according to the CSS-Loader README
        // (https://github.com/webpack/css-loader#sourcemaps)
        // In our experience, they generally work as expected,
        // just be aware of this issue when enabling this option.
        cssSourceMap: false
    },
}